﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace CamDo.DTO
{
    class Connect
    {
           private String server;
           private String username;
           private String password;
           private String database;
           public Connect()
           {
               this.server = "MICROSOFT\\MINHLAN";
               this.database = "camdo_db";
               this.username = "";
               this.password = "123456";
           }
           public SqlConnection GetConnect()
           {
               if (this.username != "")
                   return new SqlConnection("Data Source=" + this.server + ";Initial Catalog=" + this.database + ";User Id=" + this.username + ";Password=" + this.password + ";");
               else
                   return new SqlConnection("Data Source=" + this.server + ";Initial Catalog=" + this.database + ";Integrated Security=True");
 
           }


           
    }
}
